<?php

class Base {
    
    public function __construct(){
        
    }
     //返回格式化
     public function returnJson($code = 0 ,$msg = '',$data=''){
        $result['code'] = $code;
        $result['msg'] = $msg;
        $result['data'] = $data;
        return json_encode($result);
     }
}

 
